package com.youpai.platform.user.web.entity.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.youpai.platform.common.constant.BizConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @date: 2022/7/22 23:35
 * @author: Anna
 * @version: 1.0
 * @description: UserInfoDTO信息
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "UserInfoDTO",description = "用户信息")
public class UserInfoDTO {

    @ApiModelProperty(value = "用户id")
    private String uid;

    @ApiModelProperty(value = "用户名")
    private String userName;

    @ApiModelProperty(value = "昵称")
    private String nickName;

    @ApiModelProperty(value = "性别")
    private Integer gender;

    @ApiModelProperty(value = "头像")
    private String avatar;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "生日")
    @JsonFormat(pattern = BizConstant.FORMAT_DAY, timezone = BizConstant.TIME_ZONE)
    private Date birthday;

    @ApiModelProperty(value = "手机号")
    private String mobile;

    @ApiModelProperty(value = "自我简介")
    private String summary;

    @ApiModelProperty(value = "accId")
    private String accId;

    @ApiModelProperty(value = "用户类型")
    private Integer userType;
}
